package com.wd.live.module_base.net


import com.wd.live.module_base.bean.FindLiveListBean
import com.wd.live.module_base.bean.FindLiveTypeList
import com.wd.live.module_base.bean.FindWxBean

import com.wd.live.module_base.ui.BaseResult
import retrofit2.http.Field
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * 作者:
 * 时间:2024/5/16
 * 描述:
 */
interface ApiService {
/*
    @GET("live-user/verify/findLabels")
    suspend fun getLabels(@Header("userId") userId:Int,
                          @Header("sessionId") sessionId: String): BaseResult<List<LabelsBean>>*/

//    查询直播列表
    @GET("live-platform/findLiveList")
    suspend fun getFindLiveList(
        @Query("liveType") liveType:Int,
        @Query("page") page:Int,
        @Query("size") size:Int,
    ):BaseResult<List<FindLiveListBean>>
//    查询直播类型
   /* @GET("live-platform/findLiveTypeList")
    suspend fun getFindLiveTypeList():BaseResult<List<FindLiveTypeListBean>>*/
    @GET("live-platform/findLiveTypeList")
    suspend fun getFindLiveTypeList(

    ):BaseResult<List<FindLiveTypeList>>

    @POST("live-user/wxLogin")
    suspend fun getFindWxList(
       @Field("code")code:String
    ):BaseResult<FindWxBean>
}